import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.game.GameCanvas;

public class Splash extends GameCanvas
{
  public Splash()
  {
    super(false);
    setFullScreenMode(true);
  }

  public void play() {
    try {
      Graphics g = getGraphics();

      Font font = Font.getFont(64, 1, 
        8);
      g.setFont(font);

      int w = font.stringWidth("Antonio Diego");
      int h = font.getHeight();
      int x = getWidth() + 2;
      int y = (getHeight() - h) / 2;

      while (x > (getWidth() - w) / 2)
      {
        g.setColor(0);
        g.fillRect(0, 0, getWidth(), getHeight());

        g.setColor(9240616);

        g.drawString("Antonio Diego", x, y + 2, 20);
        g.drawString("Antonio Diego", x, y, 20);
        g.drawString("Antonio Diego", x + 2, y + 2, 20);
        g.drawString("Antonio Diego", x + 2, y, 20);

        g.setColor(16777215);
        g.drawString("Antonio Diego", x + 1, y + 1, 20);

        flushGraphics();

        x--;
      }

      Thread.sleep(3000L);
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }
}